package com.ruoyi.shop.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城属性对象 shop_attribute
 * 
 * @author xuxiang
 * @date 2023-04-27
 */
public class ShopAttr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long attrId;

    /** 属性类型0规格1参数 */
    @Excel(name = "属性类型0规格1参数")
    private Long attrType;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String attrName;
    
    /** 输入类型 */
    @Excel(name = "输入类型")
    private String inputType;

    /** 属性值，多项以逗号分隔 */
    @Excel(name = "属性值，多项以逗号分隔")
    private String attrValues;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
    
    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long sort;

    public void setAttrId(Long attrId) 
    {
        this.attrId = attrId;
    }

    public Long getAttrId() 
    {
        return attrId;
    }
    public void setAttrType(Long attrType) 
    {
        this.attrType = attrType;
    }

    public Long getAttrType() 
    {
        return attrType;
    }
    public void setAttrName(String attrName) 
    {
        this.attrName = attrName;
    }

    public String getAttrName() 
    {
        return attrName;
    }
    public void setAttrValues(String attrValues) 
    {
        this.attrValues = attrValues;
    }

    public String getAttrValues() 
    {
        return attrValues;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Long getSort() {
		return sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}
	
	public String getInputType() {
		return inputType;
	}

	public void setInputType(String inputType) {
		this.inputType = inputType;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attrId", getAttrId())
            .append("attrType", getAttrType())
            .append("inputType", getInputType())
            .append("attrName", getAttrName())
            .append("attrValues", getAttrValues())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
